include ./define.makefile
.PHONY:all

all:${DESC_STORE_PATH}/NFDescStoreHead.h ${DESC_STORE_PATH}/NFDescStoreDefine.h ${DESC_STORE_PATH}/NFDescStoreRegister.h ${GAME_META_DESCRIPTOR}

${DESC_STORE_PATH}/NFDescStoreHead.h ${DESC_STORE_PATH}/NFDescStoreDefine.h ${DESC_STORE_PATH}/NFDescStoreRegister.h:${PROTOCGEN_FILE_PATH}/NFDescStoreHead.h ${PROTOCGEN_FILE_PATH}/NFDescStoreDefine.h ${PROTOCGEN_FILE_PATH}/NFDescStoreRegister.h
	mkdir -p ${PROTOCGEN_FILE_PATH}
	mkdir -p ${DESC_STORE_PATH}
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/NFDescStoreHead.h" --dst=${DESC_STORE_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/NFDescStoreDefine.h" --dst=${DESC_STORE_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/NFDescStoreRegister.h" --dst=${DESC_STORE_PATH}/

${GAME_META_DESCRIPTOR}:${RESDB_DESC_XML}
	mkdir -p ${PROTOCGEN_FILE_PATH}
	mkdir -p ${GAME_LUA_PB_PATH}
	${PROTOC} $^ -I${THIRD_PARTY_INC_PATH}  -I${NANOPB_PLUGIN_PROTO} -I${PROTOCOL_PATH} -I${RESDB_META_PATH} -I${COMMON_LOGIC_META_PATH}\
			--include_imports --descriptor_set_out=${GAME_META_DESCRIPTOR}
	${FILE_COPY_EXE} --work="filecopy" --src="${GAME_META_DESCRIPTOR}" --dst=${GAME_LUA_PB_PATH}/